package com.guguskins.back.service;

import com.guguskins.back.entity.GuDisCountOrUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guguskins.back.entity.GuDiscount;
import com.guguskins.back.entity.vo.PageVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 用户表和折扣券关联表 服务类
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-07-14
 */
public interface GuDisCountOrUserService extends IService<GuDisCountOrUser> {
    List<GuDisCountOrUser> findByList();
    List<GuDisCountOrUser> findByDIdOrUserId(Integer userId, Integer duIsUse);
    Integer findByDisCount(Integer userId, String counponCode, BigDecimal threshold);
    Boolean insert(GuDisCountOrUser disCountOrUser);
    GuDisCountOrUser findByDisCount(String counponCode);
    PageVo<GuDisCountOrUser> findBypage(int pageNum, int pageSize, String userName, String disCountName, String discountState);
}
